Welcome![Sign In][Sign Up]
Location:
Search - parsing grammar in c

Search list

[ELanguage1

Description: 编译原理课程设计,采用算符优先分析算法,对G[S]所定义的赋值语句进行语法分析,并在语法分析过程中将所输入的扶植语句翻译为四元式。-Compilation Principle curriculum design, the use of operator priority analysis algorithms, the G [S] defined by assignment statements for grammar analysis and parsing process entered foster statements translated into quaternion type.
Platform: | Size: 2048 | Author: 寿帆 | Hits:

[ELanguage2

Description: 编译原理语法分析(LL1文法) 编译原理语法分析(LL1文法)-Compilation Principle parsing (LL1 grammar) Compilation Principle parsing (LL1 grammar)
Platform: | Size: 739328 | Author: sfsf | Hits:

[ELanguagedowhilee

Description: 1.1写出符合给定的语法do-while语句, 此语句符合LL(1)的文法,分析方法 的文法及属性文法。 1.2完成do-while语句的中间代码三地址表示的描述。 1.3写出do-while语句语法分析方法的思想,完成语法分析和语义分析程序设计。 1.4编制好分析程序后,设计若干用例,上机测试并通过所设计的分析程序。-1.1 write in line with the syntax of a given do-while statement, the statement in line with the LL (1) grammar, grammar analysis and grammatical attributes. 1.2 to complete a do-while statement said intermediate code description of the three addresses. 1.3 to write do-while statement syntax analysis of the ideology, the completion of parsing and semantic analysis of programming. 1.4 Analysis of the preparation of a good process, the design of a number of use cases, test the design through the analysis procedure.
Platform: | Size: 145408 | Author: 李伟霞 | Hits:

[ELanguageLR

Description: 1.实验目的 设计一个LR分析器,实现对表达式语言的分析,加深对LR语法分析方法的基本思想的理解,掌握LR分析器设计与实现的基本方法。 2.实验要求 建立文法及其LR分析表表示的数据结构,设计并实现一个LALR(1)的分析器,对源程序经词法分析后生成的二元式代码流进行分析,如果输入串是文法定义的句子则输出“是”,否则输出“否”。 3.实验内容 (1)文法描述及其LALR(1)分析表 描述表达式语言的文法G如下: -1. The experiment was to design a LR parser, the realization of the analysis of the expression language, better understanding of the LR parsing method to understand the basic idea of the master LR parser design and implementation of the basic method. 2. Experiment called for the establishment of grammar and LR analysis table that the data structure, design and realization of a LALR (1) of the analyzer, lexical analysis of source code generated by the binary-type code flow analysis, if the input strings is the definition of grammar sentence is the output " yes" , otherwise output " no." 3. Experimental (1) grammar description and LALR (1) Analysis of the expression language described in Table G of the grammar are as follows:
Platform: | Size: 289792 | Author: sh_xj | Hits:

[ELanguage2

Description: 设计并实现C语言的语分析程序,实现对算术表达式的语法分析。要求所分析算术表达式由如下的文法G产生: EE+T|E-T|T TT*F|T/F|F Fid|(E)|num 实验要求:在对输入表示进行分析的过程中,输出所采用的产生式。-Design and implement C language, language analysis program to realize the arithmetic expression parsing. Requirements of arithmetic expressions generated by the following grammar G: EE+ T | ET | T TT* F | T/F | F Fid | (E) | num test requirements: that the analysis of the input process, output used in production.
Platform: | Size: 1024 | Author: CC | Hits:

[ELanguagesemantic_analyse_program

Description: 用C++编写的语义分析程序,基于LR文法,能实现词法分析,语法分析,返回相应结果,并返回归约过程和四元式。并附有实验报告和源工程。-Written in C++ semantic analysis program, based on the LR grammar, to achieve lexical analysis, parsing, returns the appropriate result, and return to the process of reduction and quaternary type. Together with the experimental reports and the source project.
Platform: | Size: 5905408 | Author: 淼淼 | Hits:

[ELanguagest_1

Description: 本章实验为实验一,任务是编写一个程序对使用C  语言书写的源代码进行词法分析和语法分析(C  语言的文法参见附录A),并打印分析结果。实验要求使用词法分析工具GNU Flex和语法分析工具GNU Bison,并使用C语言来完成。-This chapter first experiment experiments, the task is to write a program to use C  source code written in a language lexical analysis and parsing (see C  language grammar Appendix A), and print the results. Experiments require the use of tools GNU Flex lexical analysis and parsing tools GNU Bison, and use the C language to complete.
Platform: | Size: 866304 | Author: 沈通 | Hits:

[ELanguagelab1

Description: 任务是编写一个程序对使用C 语言书写的源代码进行词法分析和语法分析(C  语言的文法参见附录A),并打印分析结果。实验要求使用词法分析工具GNU Flex和语法分析工具GNU Bison,并使用C语言来完成。在两个强大工具的帮助下,编写一个能进行词法分析和语法分析的程序是一件相当轻松愉快的事情。 需要注意的是,由于在后面的实验中还会用到本次实验已经写好的代码,因此保持一个良好的代码风格、系统地设计代码结构和各模块之间的接口对于整个实验来讲相当重要。 -The task is to write a program using C language source code written in lexical analysis and syntax analysis (see C  language grammar Appendix A), and print the results. Experiments require the use of tools GNU Flex lexical analysis and parsing tools GNU Bison, and use the C language to complete. With the help of two powerful tools, the preparation of a capable lexical analysis and parsing program is a very pleasant thing. It should be noted that, due later in the experiment will be used in this experiment has been written code, so keeping the interface between a good coding style, system design and code structure for each module in terms of the whole experiment quite important.
Platform: | Size: 18432 | Author: 沈大川 | Hits:

[OtherTokenAnalysis

Description: 用C++编写的语法分析器,对于给定的TOKEN序列能进行良好的分析,从而建立一棵语法树。-A grammar tree written in C++ provides a good parsing of a given TOKEN sequence to create a syntax tree.
Platform: | Size: 1343488 | Author: 张丽娜 | Hits:

CodeBus www.codebus.net